package com.bt7274.pojo.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Data 2025/6/7 23:05
 * @Author hp
 * @Version 1.0
 * @Description TorrentUploadBO
 */

@Data      // 自动生成getter和setter方法
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class TorrentUploadBO {

    @NotBlank(message = "种子名称不能为空")
    private String title;
    @NotBlank(message = "种子描述不能为空")
    private String description;

    @NotBlank(message = "种子分类不能为空")
    private String category;

    private List<String> tag;
    private boolean anonymous;

    @NotNull
    private MultipartFile file;
}
